package com.vedeng.study.feign;

import com.vedeng.study.model.dto.BlogDTO;
import com.vedeng.study.model.dto.BlogDetailDTO;
import com.vedeng.study.request.BlogVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @author vedeng
 * @className BlogContentApi
 * @description:
 * @date 2022/2/28 10:54
 */
//@FeignClient(value = "blog-content")
public interface BlogContentApi {


    /**
     * @description:  增加博客
     * @param: [blogVO]
     * @return: int
     * @author vedeng
     * @date: 2022/2/28 11:01
     */
    @RequestMapping("/blog/insertBlog")
    int insertBlog(@RequestBody BlogVO blogVO);


    /**
     * @description:  删除博客
     * @param: [blogVO]
     * @return: int
     * @author vedeng
     * @date: 2022/2/28 11:04
     */
    @RequestMapping("/blog/deleteBlog")
    int deleteBlog(@RequestBody BlogVO blogVO);


    /**
     * @description: 更新博客
     * @param: [blogVO]
     * @return: int
     * @author vedeng
     * @date: 2022/2/28 11:04
     */
    @RequestMapping("/blog/updateBlog")
    int updateBlog(@RequestBody BlogVO blogVO);



    /**
     * @description:  博客详情
     * @param: [blogVO]
     * @return: com.vedeng.study.model.dto.BlogDetailDTO
     * @author vedeng
     * @date: 2022/2/28 11:16
     */
    @RequestMapping("/blog/blogDetail")
    BlogDetailDTO blogDetail(@RequestBody BlogVO blogVO);



    /**
     * @description:  博客列表
     * @param: [blogVO]
     * @return: java.util.List<com.vedeng.study.model.dto.BlogDTO>
     * @author vedeng
     * @date: 2022/2/28 11:24
     */
    @RequestMapping("/blog/blogList")
    List<BlogDTO> blogList(@RequestBody BlogVO blogVO);


    @RequestMapping("/blog/addComments")
    String addComments(@RequestBody BlogVO blogVO);



}